/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifpi.ads.pc.persistenciaDados;

import br.edu.ifpi.ads.pc.NotaFiscal;

/**
 *
 * @author PC
 */
public class AbstracaoDoEnvio {
        
    
    public void Enviar(NotaFiscal nf){
        SAP sap = new SAP();
        Smtp smtp = new Smtp();
        NotaFiscalDAO nfDAO = new NotaFiscalDAO();
        
        sap.Envia(nf);
        smtp.Envia(nf);
        nfDAO.Salva(nf);
    }
}
